import request from "@/utils/request";
// 概况接口

//商户概况
export function realProfit(params) {
    return request({
        url: "channel/shop/real-profit",
        method: "get",
        params,
    });
}
//门店营业状态 自动接单状态修改
export function changeShopStatus(data) {
    return request({
        url: "channel/shop/change-shop-status",
        method: "post",
        data,
    });
}
//获取门店状态
export function getChangeShopStatus(params) {
    return request({
        url: "channel/shop/change-shop-status",
        method: "get",
        params,
    });
}
//后台用户实时数据
export function userIndex(params) {
    return request({
        url: "channel/member/index",
        method: "get",
        params,
    });
}
//后台用户 用户概况用户总览分时段查询
export function getUserData(params) {
    return request({
        url: "channel/member/get-user-data",
        method: "get",
        params,
    });
}

//数据概况
//获取数据当前我的余额部分
export function getRecordData(params) {
    return request({
        url: "channel/record/get-record-data",
        method: "get",
        params,
    });
}
//指定时间段数据获取
export function realRecord(params) {
    return request({
        url: "channel/record/real-record",
        method: "get",
        params,
    });
}
//财务资产总览
//获获取财务信息
export function getFinanceData(params) {
    return request({
        url: "channel/finance/get-finance-data",
        method: "get",
        params,
    });
}

//商品数据分析
export function getGoodDetail(params) {
    return request({
        url: "channel/good/get-good-detail",
        method: "get",
        params,
    });
}
//数据-实时分析
export function realAnalysis(params) {
    return request({
        url: "channel/record/real-analysis",
        method: "get",
        params,
    });
}
//数据-流量分析
export function realCover(params) {
    return request({
        url: "channel/record/real-cover",
        method: "get",
        params,
    });
}
//数据-交易分析
export function realPay(params) {
    return request({
        url: "channel/record/real-pay",
        method: "get",
        params,
    });
}
//数据-商品分析
export function realGood(params) {
    return request({
        url: "channel/record/real-good",
        method: "get",
        params,
    });
}
//数据-商品分析
export function goodsAnalysis(params) {
    return request({
        url: "channel/good/goods-analysis",
        method: "get",
        params,
    });
}
//数据-全部商品排行
export function goodsRank(params) {
    return request({
        url: "channel/good/goods-rank",
        method: "get",
        params,
    });
}
//待结算账单
export function waitMoney(params) {
    return request({
        url: "channel/store-bill/wait-money",
        method: "get",
        params,
    });
}
//所有账单
export function billList(params) {
    return request({
        url: "channel/store-bill/bill-list",
        method: "get",
        params,
    });
}
//账单详情
export function billInfo(params) {
    return request({
        url: "channel/store-bill/bill-info",
        method: "get",
        params,
    });
}
//堂食账单详情
export function inStoreBillInfo(params) {
    return request({
        url: "channel/store-bill/in-store-bill-info",
        method: "get",
        params,
    });
}
//堂食账单订单列表
export function billInStoreOrderInfo(params) {
    return request({
        url: "channel/store-bill/bill-in-store-order-info",
        method: "get",
        params,
    });
}
//导出账单
export function orderExport(params) {
    return request({
        url: "channel/store-bill/order-export",
        method: "get",
        params,
    });
}
//导出账单2
export function otherOrderExport(params) {
    return request({
        url: "channel/store-bill/other-order-export",
        method: "get",
        params,
    });
}
//打印对账单
export function billPrint(params) {
    return request({
        url: "channel/store-bill/bill-print",
        method: "get",
        params,
    });
}
//商家余额
export function storeBill(params) {
    return request({
        url: "channel/store-bill/store-bill",
        method: "get",
        params,
    });
}
//获取提现方式数据
export function storeGetwithdrawal(params) {
    return request({
        url: "channel/store-bill/withdrawal-set",
        method: "get",
        params,
    });
}
//提交提现方式
export function storePostwithdrawal(data) {
    return request({
        url: "channel/store-bill/withdrawal-set",
        method: "post",
        data,
    });
}
//门店提现
export function storeWthdrawal(data) {
    return request({
        url: "channel/store-bill/withdrawal",
        method: "post",
        data,
    });
}
//提现列表
export function storeWithdrawalList(params) {
    return request({
        url: "channel/store-bill/withdrawal-list",
        method: "get",
        params,
    });
}
//账户信息
export function accountInfo(params) {
    return request({
        url: "channel/store-bill/account-info",
        method: "get",
        params,
    });
}
//订单概况
export function billOrderInfo(params) {
    return request({
        url: "channel/store-bill/bill-order-info",
        method: "get",
        params,
    });
}
//订单详情
export function billOrderDetail(params) {
    return request({
        url: "channel/store-bill/bill-order-details",
        method: "get",
        params,
    });
}
//完结分账
export function profitSharingFinish(data) {
    return request({
        url: "channel/store-bill/profit-sharing-finish",
        method: "post",
        data,
    });
}

//搜索Id
export function getUserInfo(data) {
    return request({
        url: "channel/shop/get-user-info",
        method: "post",
        data,
    });
}

//会员储值充值统计
export function rechargeStatistics(params) {
    return request({
        url: "channel/member/recharge-statistics",
        method: "get",
        params,
    });
}

//余额明细
export function balanceDetailed(data) {
    return request({
        url: "channel/member/balance-detailed",
        method: "post",
        data,
    });
}

//积分明细
export function integralDetailed(data) {
    return request({
        url: "channel/member/integral-detailed",
        method: "post",
        data,
    });
}
//外卖概况1
export function takeOutIndex(params) {
    return request({
        url: "channel/financial/take-out-index",
        method: "get",
        params,
    });
}
//店内概况1
export function inStoreIndex(params) {
    return request({
        url: "channel/financial/in-store-index",
        method: "get",
        params,
    });
}
//外卖支付概况
export function takeOutIndexPay(params) {
    return request({
        url: "channel/financial/take-out-index-pay",
        method: "get",
        params,
    });
}
//店内支付概况
export function inStoreIndexPay(params) {
    return request({
        url: "channel/financial/in-store-index-pay",
        method: "get",
        params,
    });
}
//外卖商品概况
export function takeOutGood(params) {
    return request({
        url: "channel/financial/take-out-good",
        method: "get",
        params,
    });
}
//堂食商品概况
export function instGood(params) {
    return request({
        url: "channel/financial/inst-good",
        method: "get",
        params,
    });
}
//当面付概况
export function getCashierData(params) {
    return request({
        url: "channel/financial/get-cashier-data",
        method: "get",
        params,
    });
}
//账户明细
export function storeBillList(params) {
    return request({
        url: "channel/store-bill/store-bill-list",
        method: "get",
        params,
    });
}
//交易记录
export function transaction(params) {
    return request({
        url: "channel/store-bill/transaction",
        method: "get",
        params,
    });
}
//资产总览
export function assetOverview(params) {
    return request({
        url: "channel/financial/asset-overview",
        method: "get",
        params,
    });
}
//导出商品销量排行
export function goodExport(data) {
    return request({
        url: "channel/financial/good-export",
        method: "post",
        data,
    });
}
//财务订单详情
export function currencyOrderInfo(params) {
    return request({
        url: "channel/store-bill/currency-order-info",
        method: "get",
        params,
    });
}

